home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / UK.cab / _799D2CF39B2D4257997B8B2D74244FA5 / flag_uk.mat < prev    next >
Encoding:
Text File  |  2005-09-05  |  2.9 KB  |  140 lines

  1. !include("surface.def")
  2. $SPECPOW(f, 20)
  3. $TEXTURE1(s,"flag_uk.dds")
  4. $TEX1OPTIONSFILE(s,"")
  5.  
  6. Shader()
  7. {
  8.     SurfaceID(SRF_PLASTIC)
  9.     Shaderquality(3)
  10.     NoLightmaps()
  11.     Pass()
  12.     {
  13.         Lighting()
  14.         VertexShader("Bands.vsh")
  15.         Pixelshader("COST.psh")
  16.  
  17.         tmu()
  18.         {
  19.             texmod("translate", "sin", -2.1, 4.3, 3.2, "sin", -5, 3.03, 10)
  20.             Texture()
  21.             {
  22.                 Mapchannel(0)
  23.                 Image("Band.dds")
  24.                 LODBias(-1)
  25.             }
  26.         }
  27.  
  28.         tmu()
  29.         {
  30.             TexMtxDirPosScale(0.866025, 0.5, 0.0, 0, 0, 0, 0.000015, 0.00002, 0.000015)
  31.             TexMod("translate", "lin", 0, 0.02, 0, "lin", 0, 0.001, 0)
  32.             texture()
  33.             {
  34.                 Image(%cloudstexture)
  35.             }
  36.         }
  37.         tmu()
  38.         {
  39.             texture()
  40.             {
  41.                 Image(%colortexturesmall)
  42.                 addressfunc("clamp", "clamp", "clamp")
  43.             }
  44.         }
  45.  
  46.        tmu()
  47.        {
  48.             TexMtxDirPosScale(1.0, 0.0, 0.0, 0, 0, 0, %waterscale, %waterscale, %waterscale)
  49.             texture()
  50.             {
  51.                 Image("WaterDeep_P.dds")
  52.                 filtering("linear_no_mip")
  53.                 addressfunc("wrap", "clamp", "clamp")
  54.  
  55.             }
  56.        }
  57.  
  58.         !include("__FadeGen.mtt")
  59.         !include("__LightningColors.mtt")
  60.     }
  61.     lightpass()
  62.  
  63.     !include("SpotBand.mtt")
  64.  
  65.     Cull("cw")
  66. }
  67.  
  68.  
  69. Shader()
  70. {// >=gf3
  71.     SurfaceID(SRF_PLASTIC)
  72.     NoLightmaps()
  73.     Shaderquality(1)
  74.     Pass()
  75.     {
  76.         Lighting()
  77.         Pixelshader("OST.psh")
  78.  
  79.         !include("__Tex1.mtt")
  80.         !include("__TerrainColormapSmall.mtt")
  81.  
  82.         !include("__FadeGen.mtt")
  83.         !include("__LightningColors.mtt")
  84.  
  85.     }
  86.  
  87.     lightpass()
  88.  
  89.     !include("Spot1Tex.mtt")
  90.     Cull("cw")
  91. }
  92.  
  93. Shader()
  94. {//gf2
  95.     SurfaceID(SRF_PLASTIC)
  96.     Shaderquality(0)
  97.     NoLightmaps()
  98.     Pass()
  99.     {
  100.         Lighting()
  101.         tmu()
  102.         {
  103.             TexGen("planar")
  104.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  105.             texture()
  106.             {
  107.                 Image(%colortexturesmall)
  108.                 addressfunc("clamp", "clamp", "clamp")
  109.             }
  110.             ColorOp("mul_add", "texture_a", "diffuse", "tfactor_a")
  111.         }
  112.  
  113.  
  114.         tmu()
  115.         {
  116.             Texture()
  117.             {
  118.                 Mapchannel(0)
  119.                 Image(TEXTURE1)
  120.                 !include(TEX1OPTIONSFILE)
  121.             }
  122.             ColorOp("mul", "texture", "current", "current")     //texture * lighting
  123.             AlphaOp("arg2", "texture", "diffuse", "current")    //fadeblending
  124.         }
  125.  
  126.         Tfactor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  127.  
  128.         !include("__FadeGenDayColorGF2.mtt")
  129.  
  130.         !include("__LightningColorsGF2.mtt")
  131.  
  132.     }
  133.     lightpass()
  134.     !include("spot_spotmap.mtt")
  135.     Cull("cw")
  136. }
  137.  
  138.  
  139.  
  140.